try:
    risky_operation()
except ValueError as err:
    print("Value error occurred:", str(err))